package com.tutorial.springboot.service;

import com.tutorial.springboot.document.Post;
import com.tutorial.springboot.service.impl.PostServiceImpl;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * Created by louchen on 2016/11/21.
 */
public interface PostService  {

    Post saveInEs(Post post);

    Post findByTitle(String title);

    List<Post> findByTitleLike(String title);

    PostServiceImpl.SearchResult findIdsByTitleCNLike(String titleCN, PageRequest pageRequest);
}
